﻿namespace MicroCloud.Utils
{
    /// <summary>
    /// 内存优化特性
    /// <para><see href="https://www.bookstack.cn/read/ef-core-zh/56a5652fed77425f.md">适用于SQL Server内存优化表支持</see></para>
    /// </summary>
    [AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = true)]
    public sealed class MemoryOptimizedAttribute : Attribute
    {
        /// <summary>
        /// 初始化一个内存优化特性 <see cref="MemoryOptimizedAttribute"/> 的新实例
        /// </summary>
        public MemoryOptimizedAttribute(bool enabled = true)
        {
            Enabled = enabled;
        }

        #region 属性
        /// <summary>
        /// 获取 启用
        /// </summary>
        public bool Enabled { get; }

        #endregion

    }

}
